/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Máté
 */
public class Port extends Gate {    //Composite be és kimeneteit jelképzei

    private Boolean isOutput;       //kimeneti port-e

    public Port(Boolean isOutput) { //konstruktor
        super(1);
        this.isOutput = isOutput;
    }

    public Boolean isOutput() {     //ellenorzo metodus
        return this.isOutput;
    }

    @Override
    public void gateFunc() {        //ososztaly metodusanak implementacioja
        getOutput().update(getInputs().get(0).isHighLevel());
    }
}
